package one.stand.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import one.stand.model.AssembleModel;
import one.stand.model.BaseModel;
import one.stand.model.GoodSpecModel;

import java.util.Date;
import java.util.List;

@Data
@ApiModel("拼团")
public class GoodsAssembleResponse {

    @ApiModelProperty("Id")
    private Integer assembleId;

    @ApiModelProperty("商品id")
    private Integer goodsId;

    @ApiModelProperty("商品分类名称")
    private String goodsTypeName;

    @ApiModelProperty("开团时间")
    private Date startTime;

    @ApiModelProperty("结束时间")
    private Date endTime;

    @ApiModelProperty("成团人数")
    private Integer peopleNum;

    @ApiModelProperty("单账号最多开团数")
    private Integer openRegiment;

    @ApiModelProperty("单账号最多参团数")
    private Integer joinRegiment;

    @ApiModelProperty("单账号最多可购买数")
    private Integer maxPurchase;

    @ApiModelProperty("0:草稿箱 1:正式发布")
    private Integer assembleType;

    @ApiModelProperty("公司ID")
    private Integer companyId;

    @ApiModelProperty("1:拼团商品")
    private Integer isAssemble;

    @ApiModelProperty("拼团发布时间")
    private Date assembleTime;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("商品数量")
    private String goodsNum;

    @ApiModelProperty("最低拼团价格")
    private Integer minAssemblePrice;

    @ApiModelProperty("最低价格")
    private Integer minPrice;

    @ApiModelProperty("总销量")
    private Integer totalBuyNum;

    /**
     * 临时字段
     */
    @ApiModelProperty("1: 进行中  2: 已结束")
    private Integer type;

    /**
     * 已拼团人数
     */
    private Integer putAssemble;

    /**
     * 商品规格
     */
    @ApiModelProperty("商品规格")
    private List<GoodSpecModel> goodSpecModelList;

    /**
     * 订单列表
     */
    @ApiModelProperty("订单列表")
    private List<AssembleModel> ordersModelList;
}